package com.unipay.spring.pojo;

import java.util.Arrays;
import java.util.Map;

/**
 * @BelongsProject: SSM
 * @Author: cmy
 * @CreateTime: 2023-01-15  09:35
 * @Description: TODO
 */

public class Student implements Person{

    private Integer sid;
    private String sname;
    private Integer age;
    private String gender;
    private Double score;

    private Clazz clazz;
    private String[] hobbies;
    private Animal[] animals;

    private Map<Integer, Teacher> teachers;

    public Student() {
    }
    public Student(Integer sid, String sname, Integer age, String gender) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gender = gender;
    }
    public Student(Integer sid, String sname, Integer age, String gender, Double score, Clazz clazz) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gender = gender;
        this.score = score;
        this.clazz = clazz;
    }
    public Student(Integer sid, String sname, Integer age, String gender, Double score, Clazz clazz, String[] hobbies, Animal[] animals, Map<Integer, Teacher> teachers) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gender = gender;
        this.score = score;
        this.clazz = clazz;
        this.hobbies = hobbies;
        this.animals = animals;
        this.teachers = teachers;
    }


    public Map<Integer, Teacher> getTeachers() {
        return teachers;
    }
    public void setTeachers(Map<Integer, Teacher> teachers) {
        this.teachers = teachers;
    }
    public Animal[] getAnimals() {
        return animals;
    }

    public void setAnimals(Animal[] animals) {
        this.animals = animals;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public String[] getHobbies() {
        return hobbies;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", score=" + score +
                ", clazz=" + clazz +
                ", hobbies=" + Arrays.toString(hobbies) +
                ", animals=" + Arrays.toString(animals) +
                ", teachers=" + teachers +
                '}';
    }
}
